[XEN] Support unconnected IRQ lines in pirq_acktype().
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 24 Sep 2006 09:14:17 +0000 (10:14 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 24 Sep 2006 09:14:17 +0000 (10:14 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/irq.c

index 56e14e3e6f881fef9287b2e1b5f57dd5545fa295..4fa637ad01fc6af75de179fe7b4e4bee6839f733 100644 (file)
@@ -351,6 +351,9 @@ int pirq_acktype(int irq)
 
     desc = &irq_desc[vector];
 
+    if ( desc->handler == &no_irq_type )
+        return ACKTYPE_NONE;
+
     /*
      * Edge-triggered IO-APIC and LAPIC interrupts need no final
      * acknowledgement: we ACK early during interrupt processing.